package constant.milk.aptprice.apt;

import java.util.HashMap;

import android.content.Context;
import constant.milk.aptprice.database.DbAdapter;
import constant.milk.aptprice.database.DbInsertQuery;

public class GwangjuSetting
{
	private DbInsertQuery insertQuery;
	
	public GwangjuSetting(Context context, DbAdapter db)
	{
		insertQuery = new DbInsertQuery(context, db);
	}
	
	public void Setting() throws Exception
	{
		setData("광산구", "194", "157");
		setData("남구",	"150", "119");
		setData("동구",	"171", "137");
		setData("북구",	"177", "141");
		setData("서구",	"206", "163");
	}
	
	private void setData(String name, String meib, String junse) throws Exception
	{
		HashMap<String, String> map = new HashMap<String, String>();
		
		map.put("title", "광주광역시");
		map.put("name", name);
		map.put("meib", meib);
		map.put("junse", junse);
		
		insertQuery.setAptData(map);
	}
}
